package com.bookstore.Service;

import com.bookstore.Domain.Announcement;
import com.bookstore.Domain.Shopping;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 未来
 */
@Transactional
public interface AnnouncementService {

    /**
     * 获取所有的公告信息
     *
     * @return
     */
    List<Announcement> findAll();

    /**
     * 存储公告
     *
     * @param announcement
     * @return
     */
    boolean saveShopping(Announcement announcement);

    /**
     * 删除公告id
     *
     * @param id
     * @return
     */
    boolean deleteAnnouncement(int id);
}
